package org.spring.cloud.util;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DateUtils {

	private DateUtils() {}
	
	/**
	 * 获取当前日期，eg:20200810
	 * @return
	 */
	public static String getCurrDate() {
		LocalDate now = LocalDate.now();
		DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMM");
		return dateTimeFormatter.format(now);
	}
}
